package com.kun.result;

/**
 * @description: 返回结果消息
 * @author: KM
 * 2018年3月25日
 */
public enum ExceptionMsg {
	SUCCESS("000000", "操作成功"),
	FAILED("999999","操作失败"),
    ParamError("000001", "参数错误！"),
    AmountError("000002","取回数目不符"),
    BookNotExit("000003","不存在该图书"),
    ExitManyName("000004","存在同名"),
    
    LoginNameOrPassWordError("000100", "用户名或者密码错误！"),
    EmailUsed("000101","该邮箱已被注册"),
    UserNameUsed("000102","该手机号已被注册"),
    EmailNotRegister("000103","该邮箱地址未注册"), 
    LinkOutdated("000104","该链接已过期，请重新请求"),
    PassWordError("000105","密码输入错误"),
    UserNameLengthLimit("000106","用户名长度超限"),
    LoginNameNotExists("000107","该用户未注册"),
    UserNameSame("000108","新用户名与原用户名一致"),
    MustToLogin("000109","请登录..."),
    CodeExpire("000110","取书码不存在或已失效"),
    UserBanPost("000112","该用户已被禁言"),
    UserNotHasBorrow("000113","该用户未拥有借阅权限"),
    UserBorrowLimit("000114","该用户达到借阅上限"),
    UserNotAuth("000115","该用户未实名认证"),
    
    FileEmpty("000400","上传文件为空"),
    FilePathNotExist("000401","文件路径不存在"),
    LimitPictureSize("000402","图片大小必须小于10M"),
    LimitPictureType("000403","图片格式必须为'jpg'、'png'、'jpge'、'gif'、'bmp'"),
    FirstUploadSuccess("000111", "首次上传图片成功！")
    ;
   private ExceptionMsg(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    private String code;
    private String msg;
    
	public String getCode() {
		return code;
	}
	public String getMsg() {
		return msg;
	}

    
}

